/**
 * @author jaloma
 */
function updateurl() 
{
	document.getElementById("bf").href = "http://reiseauskunft.bahn.de/bin/bhftafel.exe/dn?productsDefault=1111101000&productsLocal=0000010111&time=actual&boardType=dep&productsFilter=0&distance=0&start=click&input=" + document.getElementById("S").value;
	document.getElementById("bf").title = "Klicken, um den aktuellen Fahrplan von " + document.getElementById("S").value + " anzuzeigen.";
}

function flipStations() 
{
	var s_val = document.getElementById("S").value;
	var z_val = document.getElementById("Z").value;
	document.getElementById("S").value = z_val;
	document.getElementById("Z").value = s_val;
	updateurl();
}
